@extends('layouts.admin')
@section('content')
<div class="page-bar">
	<ul class="page-breadcrumb">
	    <li>
	        <a href="{{url('admin')}}">{!! trans('labels.breadcrumb.home') !!}</a>
	        <i class="fa fa-angle-right"></i>
	    </li>
	    <li>
	        <a href="{{url('admin/winc')}}">公共费用明细</a>
	        <i class="fa fa-angle-right"></i>
	    </li>
	    <li>
	        <span>添加公共费用明细</span>
	    </li>
	</ul>
</div>
<div class="row margin-top-40">
  <div class="col-md-12">
      <!-- BEGIN SAMPLE FORM PORTLET-->
      <div class="portlet light bordered">
          <div class="portlet-title">
              <div class="caption font-green-haze">
                  <i class="icon-settings font-green-haze"></i>
                  <span class="caption-subject bold uppercase">添加公共费用明细</span>
              </div>
              <div class="actions">
                  <a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
              </div>
          </div>
          <div class="portlet-body form">
          		@if (isset($errors) && count($errors) > 0 )
					    <div class="alert alert-danger">
					        <button class="close" data-close="alert"></button>
					        @foreach($errors->all() as $error)
					            <span class="help-block"><strong>{{ $error }}</strong></span>
					        @endforeach
					    </div>
					    @endif
              <form role="form" class="form-horizontal" method="POST" action="{{url('admin/wincome/add')}}">
              		{!! csrf_field() !!}
                  <div class="form-body">
                    
                    <!--<div class="form-group form-md-line-input">
                                <label class="col-md-2 control-label" for="userid">收入类型</label>
                                <div class="col-md-8">
                                    <select id="project" name="project" class="form-control">
                                            <option value="1" data-icon="">上海亿大</option>
                                            <option value="2" data-icon="">昆明亿大</option>
                                            <option value="3" data-icon="">长治亿大</option>
                                            <option value="4" data-icon="">医生集团</option>
                                    </select>
                                    <div class="form-control-focus"> </div>
                                </div>
                     </div>
                    
                     <div class="form-group form-md-line-input">
                                <label class="col-md-2 control-label" for="userid">收入巴</label>
                                <div class="col-md-8">
                                    <select id="bar" name="bar" class="form-control">
                                            <option value="1" data-icon="">渠道巴</option>
                                            <option value="2" data-icon="">网络巴</option>
                                            <option value="3" data-icon="">新媒体巴</option>
                                            <option value="4" data-icon="">电商巴</option>
                                            <option value="5" data-icon="">自媒体巴</option>
                                            <option value="6" data-icon="">摄制巴</option>
                                            <option value="7" data-icon="">企划巴</option>
                                            <option value="8" data-icon="">技术吧</option>
                                    </select>
                                    <div class="form-control-focus"> </div>
                                </div>
                     </div>-->
                    
                    
                    
                      <div class="form-group form-md-line-input">
                          <label class="col-md-2 control-label" for="name">服务费</label>
                          <div class="col-md-8">
                              <input type="text" class="form-control" id="name" name="service"  value="{{old('name')}}" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" placeholder="服务费">
                              <div class="form-control-focus"> </div>
                          </div>
                      </div>

                      <div class="form-group form-md-line-input">
                          <label class="col-md-2 control-label" for="email">消费金额</label>
                          <div class="col-md-8">
                              <input type="text" class="form-control" id="email" name="amount" placeholder="消费金额" value="{{old('email')}}" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
                              <div class="form-control-focus"> </div>
                          </div>
                      </div>

                      <div class="form-group form-md-line-input">
                          <label class="col-md-2 control-label" for="password">提成</label>
                          <div class="col-md-8">
                            <input type="text" class="form-control" id="password" name="ticheng" placeholder="后台核算请勿填写" disabled="disabled">
                              <div class="form-control-focus"> </div>
                          </div>
                      </div>

                    
                          <div class="form-group form-md-line-input">
                          <label class="col-md-2 control-label" for="email">活动</label>
                          <div class="col-md-8">
                              <input type="text" class="form-control" id="email" name="activity" placeholder="活动" value="{{old('email')}}" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
                              <div class="form-control-focus"> </div>
                          </div>
                      </div>
                    
                         <div class="form-group form-md-line-input">
                          <label class="col-md-2 control-label" for="email">其他</label>
                          <div class="col-md-8">
                              <input type="text" class="form-control" id="email" name="other" placeholder="其他" value="{{old('email')}}" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')">
                              <div class="form-control-focus"> </div>
                          </div>
                      </div>
                    
                    
                  
                  </div>
                  <div class="form-actions">
                      <div class="row">
                          <div class="col-md-offset-2 col-md-10">
                              <a href="{{url()->previous()}}" class="btn default">{{trans('crud.cancel')}}</a>
                              <button type="submit" class="btn blue">{{trans('crud.submit')}}</button>
                          </div>
                      </div>
                  </div>
              </form>
          </div>
      </div>
  </div>
</div>
<div class="modal fade" id="draggable" role="basic" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
        </div>
    </div>
</div>
@endsection
@section('js')
<script type="text/javascript">
  $(function() {
    /*modal事件监听*/
    $(".modal").on("hidden.bs.modal", function() {
         $(".modal-content").empty();
    });
  });
</script>
@endsection